home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
database
/
do1beta
/
hyper.do
< prev
next >
Wrap
Text File
|
1991-07-25
|
769b
|
31 lines
/*
this is a demo of dObject's hypertext display feature
first, define a method to handle the "Application key 1"
(ctrl-F1) key when it is pressed
*/
method Int::onApplicationKey(self,s)
{
/*
create a window for the text
*/
w = new(Window,1,112,112,"",5,5,10,40);
/*
display the text
to follow the link for a highlighted field, hit the ctrl-f1 key
*/
display("the topic selected was "+s);
remove(w);
}
/*
demo hypertext
*/
#define COLOR 79
db = new(Dbffile,"help");
index = new(Ndxfile,db,"help");
w = new(Window,1,112,112," Hypertext ",1,1,22,78);
display(htExpand(db,index,COLOR,32,"asString asDate currentWindow date time"));
remove(w);
close(db);
clearMemory(); % this removes the version of Int::onHyperKey() defined above